/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gettree;

/**
 *
 * @author user
 */
public class Tree {
    private TreeNode root ;

    public Tree() {
           root = new TreeNode(null, "", null);
    }

    public TreeNode getRoot() {
        return root;
    }


    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Tree other = (Tree) obj;
        if (this.root != other.root && (this.root == null || !this.root.equals(other.root))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + (this.root != null ? this.root.hashCode() : 0);
        return hash;
    }
    
    
}
